﻿#pragma once

// 常量
class Const {
    // 格
    public: static const int GRID_SIZE = 120;                                           // 尺寸

    // 游戏区域
    public: static const int GAME_BOARD_X = 10;                                         // 左上角 X 坐标
    public: static const int GAME_BOARD_Y = 10;                                         // 左上角 Y 坐标
    public: static const int GAME_BOARD_GRID_COUNT_H = 4;                               // 横向格数
    public: static const int GAME_BOARD_GRID_COUNT_V = 4;                               // 纵向格数
    public: static const int GAME_BOARD_WIDTH = GRID_SIZE * GAME_BOARD_GRID_COUNT_H;    // 宽度
    public: static const int GAME_BOARD_HEIGHT = GRID_SIZE * GAME_BOARD_GRID_COUNT_V;   // 高度
    public: static const COLORREF GAME_BOARD_COLOR = RGB(250, 200, 150);                // 背景色
    public: static LPCTSTR GAME_BOARD_FONT_NAME;                                        // 字体名
    public: static const int GAME_BOARD_FONT_SIZE = 400;                                // 字体尺寸

    // 胜利数
    public: static const int WIN_NUMBER = 2048;                                         // 达到此数胜利

    // 事件
    public: static const UINT UM_GAME_OVER = WM_USER + 1;                               // 游戏结束事件
};
